package com.mark.search.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author : mark
 * @desc : es配置
 * @since : 2022/7/08 16:41
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "es")
public class EsConfig {

    private String host;
    private String port;
    private String schema;
    private int connectTimeOut;
    private int socketTimeOut;
    private int connectionRequestTimeOut;
    private int maxConnectNum;
    private int maxConnectPerRoute;
    private String userName;
    private String password;
    private String indexName1;
    private String indexName2;

}